#include <stdio.h>
#include <stdlib.h>


static void f1(void)
{
    puts("f1 is working!");
}

static void f2(void)
{
    puts("f2 is working!");
}

int main()
{
    puts("Begin!");
    atexit(f1);
    atexit(f2);
    puts("End!");
    return 0;
}